package cn.bugstack.springframework.test.bean;

import cn.hutool.core.map.MapUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>模拟用户DAO类
 * <p>reference: DerekYRC https://github.com/DerekYRC/mini-spring
 *
 * @author Yaxi.Zhang
 * @since 2022/12/17 16:12
 */
public class UserDao {

    private static final Map<String, String> hashMap = MapUtil.builder(new HashMap<String, String>())
            .put("10001", "小傅哥").put("10002", "八杯水").put("10003", "阿毛").build();

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }

}
